:root {
  --swm-zoom-select-width: 50px;
  --swm-zoom-select-trigger-offset: 20px;
}

.zoom-controls {
  background-color: var(--swm-zoom-controls-background);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.zoom-controls .icon-button.zoom-out-button {
  border-radius: 0 0 18px 18px;
}

.zoom-controls .icon-button.zoom-in-button {
  border-radius: 18px 18px 0 0;
}

.zoom-controls .icon-button:hover {
  background-color: var(--swm-zoom-controls-button-background-hover);
}

.zoom-select-trigger {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  height: var(--swm-button-size);
  border: 0px solid transparent;
  gap: 5px;
  background-color: var(--swm-zoom-controls-background);
  color: var(--swm-zoom-select-trigger-text);
  user-select: none;
}
.zoom-select-trigger:hover {
  background-color: var(--swm-zoom-select-trigger-hover);
}
.zoom-select-trigger[data-state="open"] {
  border-radius: 0 0 18px 18px;
}
.zoom-select-trigger[data-disabled] {
  background-color: var(--swm-zoom-select-trigger-disabled);
  color: var(--swm-secondary-text);
  pointer-events: none;
}

.zoom-select-content {
  overflow: hidden;
  background-color: var(--swm-zoom-controls-background);
  border-radius: 18px;
  padding-top: 4px;
  margin-left: calc(var(--swm-zoom-select-trigger-offset) * -1 / 2);
}

.zoom-select-viewport {
  display: flex;
  flex-direction: row;
}

.zoom-dropdown-menu-content {
  min-width: var(--swm-zoom-select-width);
  background-color: var(--swm-zoom-controls-background);
  border-radius: 6px;
  padding: 4px;
  margin-left: 5px;
  animation-duration: 400ms;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
  box-shadow: var(--swm-backdrop-shadow);
}

.zoom-select-value {
  display: flex;
  align-items: center;
  gap: 5px;
}

.zoom-select-item {
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: center;
  height: 32px;
  padding: 0 10px;
  border-radius: 4px;
  color: var(--swm-default-text);
}
.zoom-select-item[data-highlighted] {
  outline: none;
  background-color: var(--swm-zoom-select-highlighted);
  cursor: pointer;
}
.zoom-select-item[data-disabled] {
  color: var(--swm-zoom-select-disabled-text);
  pointer-events: none;
}

.zoom-select-item-separator {
  height: 1px;
  background-color: var(--swm-zoom-select-separator);
  margin: 2px 0;
  width: 100%;
}
